<template>
	<div>
		<button v-on:click="handler1()">click1</button><br>
		<button v-on:click="handler2('刘玄德')">click2</button><br>
		<button v-on:click="handler3('张翼德',$event)">click3</button><br>
	</div>
</template>

<script>
	export default {
		methods: {
			handler1(){
				alert("handler1")
			},
			handler2(name){
				alert("handler2"+name)
			},
			handler3(name,event){
				//event 当前事件的对象
				alert("handler3"+name+event)
			}
		}
	}
</script>

<style>
</style>
